home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
grafik
/
3d & render tools
/
irit
/
man
/
man6
/
coord.6
< prev
next >
Wrap
Text File
|
1996-07-16
|
1KB
|
36 lines
.TH COORD
6 "IRIT Version 6.0"
.SH NAME
COORD
AnyType COORD( AnyType Object, NumericType Index )
Extracts an element from a given Object, at index Index. From
a PointType, VectorType, PlaneType, CtlPtType and MatrixType, a NumericType
is returned with Index 0 for the X axis, 1 for the Y axis etc.
Index 0 denotes the weight of CtlPtType. For a PolygonType that
contains more than one polygon, the Indexth polygon is returned. For
a PolygonType that contains a single Polygon, the Indexth vertex is
returned. For a CurveType or a SurfaceType, the Indexth CtlPtType is
returned. For a ListType, COORD behaves like NTH and returns the Indexth
object in the list. For a StringType, the Indexth character is returned
as its ASCII numeric code.
Example:
a = vector( 1, 2, 3 );
vector( COORD( a, 0 ), COORD( a, 1 ), COORD( a, 2 ) );
a = ctlpt( P2, 6, 7, 8, 9 );
ctlpt( P3, coord( a, 0 ), coord( a, 1 ), coord( a, 2 ), coord( a, 3 ) );
a = plane( 10, 11, 12, 13 );
plane( COORD( a, 0 ), COORD( a, 1 ), COORD( a, 2 ), COORD( a, 3 ) );
constructs a vector/ctlpt/plane and reconstructs it by extracting the
constructed scalar components of the objects using COORD.
See also COERCE.